package com.ktjy.example.example03To10.service.impl;


import com.ktjy.example.example01To02.entity.Pet;
import com.ktjy.example.example03To10.dao.PetDao;
import com.ktjy.example.example03To10.service.PetService;

public class PetServiceImpl implements PetService {

    private PetDao petDao;

    public PetDao getPetDao() {
        return petDao;
    }

    public void setPetDao(PetDao petDao) {
        this.petDao = petDao;
    }


    @Override
    public boolean save(Pet pet) {
        return petDao.insertPet(pet) > 0;
    }
}
